package com.mmlc.meimei.lichengkongjian.classify;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.mmlc.inter.InterAdapter;
import com.mmlc.meimei.lichengkongjian.R;
import com.mmlc.network.responsebean.CategoryListResponseBean;

import java.util.List;

/**
 * Created by Administrator on 2016/7/16.
 */
public class ExpendClassifyAdapter extends InterAdapter<CategoryListResponseBean.DataBean.ListBean.ListCBean> {
    public ExpendClassifyAdapter(Context context, List<CategoryListResponseBean.DataBean.ListBean.ListCBean> datas) {
        super(context, datas);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        TextView tv_item = (TextView) LayoutInflater.from(context).inflate(R.layout.item_expendclassify, parent, false);
        tv_item.setText(datas.get(position).getName());
        return tv_item;
    }
}
